package com.atguigu.admin.controller;

import com.wf.captcha.utils.CaptchaUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * ClassName:CaptchaController
 * Package:com.atguigu.admin.controller
 * Description:
 *
 * @Author 应永豪
 * @Create 2024/4/23 10:13
 * @Version 1.0
 */
@Controller
@RequestMapping
public class CaptchaController {

    @GetMapping("/captcha")
    public  void captcha(HttpServletRequest request , HttpServletResponse response) throws IOException {
        CaptchaUtil.out(request,response);
    }
}
